package com.zcc.makingfriend.service;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author zcc
 */
public interface AttachmentService {

    /**
     * 上传文件
     * @param files
     * @return
     */
    List<String> upload(MultipartFile[] files);

    /**
     * 获取文件
     * @param resp
     * @param objectName
     * @return
     */
    int download(HttpServletResponse resp, String objectName);
}
